package com.example.chcrm.service.impl;

import com.example.chcrm.entity.common.EssRoleMenu;
import com.example.chcrm.mapper.EssEmployeeRoleMapper;
import com.example.chcrm.mapper.RoleMenuMapper;
import com.example.chcrm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author 邹
 * @Date 2025/5/1 19:00
 * @Version 1.0
 */
@Service
public class RoleServiceImpl<T> implements RoleService<T> {
    @Autowired
    private EssEmployeeRoleMapper rmMapper;
//    @Autowired
//    private EssRoleMenuMapper essRoleMenuMapper;
    @Autowired
    private RoleMenuMapper essRoleMenuMapper;
    @Override
    @Transactional
    public List<EssRoleMenu> findAllRoleMeun() {
        return essRoleMenuMapper.findRoleAllResources();
    }

}
